import Vue from 'vue'
import Vuex from 'vuex'

import user from './module/user'
import ch from './module/ch'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isMAPP: (navigator.userAgent.indexOf('MICRO_TASK') !== -1) || window.MICRO_TASK
  },
  getters: {},
  modules: {
    user,
    ch
  }
})
